3.8.95 \(\int \frac {x^{-m} \sqrt {a+b x}}{\sqrt {-a-b x}} \, dx\)

Optimal. Leaf size=36 \[ \frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}} \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {23, 30} \begin {gather*} \frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + b*x]/(x^m*Sqrt[-a - b*x]),x]

[Out]

(x^(1 - m)*Sqrt[a + b*x])/((1 - m)*Sqrt[-a - b*x])

Rule 23

Int[(u_.)*((a_) + (b_.)*(v_))^(m_)*((c_) + (d_.)*(v_))^(n_), x_Symbol] :> Dist[(a + b*v)^m/(c + d*v)^m, Int[u*
(c + d*v)^(m + n), x], x] /; FreeQ[{a, b, c, d, m, n}, x] && EqQ[b*c - a*d, 0] &&  !(IntegerQ[m] || IntegerQ[n
] || GtQ[b/d, 0])

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin {align*} \int \frac {x^{-m} \sqrt {a+b x}}{\sqrt {-a-b x}} \, dx &=\frac {\sqrt {a+b x} \int x^{-m} \, dx}{\sqrt {-a-b x}}\\ &=\frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 36, normalized size = 1.00 \begin {gather*} \frac {x^{1-m} \sqrt {a+b x}}{(1-m) \sqrt {-a-b x}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + b*x]/(x^m*Sqrt[-a - b*x]),x]

[Out]

(x^(1 - m)*Sqrt[a + b*x])/((1 - m)*Sqrt[-a - b*x])

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.13, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{-m} \sqrt {a+b x}}{\sqrt {-a-b x}} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[Sqrt[a + b*x]/(x^m*Sqrt[-a - b*x]),x]

[Out]

Defer[IntegrateAlgebraic][Sqrt[a + b*x]/(x^m*Sqrt[-a - b*x]), x]

________________________________________________________________________________________

fricas [A]  time = 1.82, size = 42, normalized size = 1.17 \begin {gather*} \frac {\sqrt {b x + a} \sqrt {-b x - a} x}{{\left (a m + {\left (b m - b\right )} x - a\right )} x^{m}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(1/2)/(x^m)/(-b*x-a)^(1/2),x, algorithm="fricas")

[Out]

sqrt(b*x + a)*sqrt(-b*x - a)*x/((a*m + (b*m - b)*x - a)*x^m)

________________________________________________________________________________________

giac [C]  time = 1.21, size = 14, normalized size = 0.39 \begin {gather*} \frac {i \, x^{-m + 1}}{m - 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(1/2)/(x^m)/(-b*x-a)^(1/2),x, algorithm="giac")

[Out]

I*x^(-m + 1)/(m - 1)

________________________________________________________________________________________

maple [A]  time = 0.00, size = 31, normalized size = 0.86 \begin {gather*} -\frac {\sqrt {b x +a}\, x \,x^{-m}}{\left (m -1\right ) \sqrt {-b x -a}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^(1/2)/(x^m)/(-b*x-a)^(1/2),x)

[Out]

-x/(m-1)*(b*x+a)^(1/2)/(x^m)/(-b*x-a)^(1/2)

________________________________________________________________________________________

maxima [C]  time = 0.86, size = 15, normalized size = 0.42 \begin {gather*} -\frac {x}{{\left (i \, m - i\right )} x^{m}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(1/2)/(x^m)/(-b*x-a)^(1/2),x, algorithm="maxima")

[Out]

-x/((I*m - I)*x^m)

________________________________________________________________________________________

mupad [B]  time = 1.20, size = 31, normalized size = 0.86 \begin {gather*} -\frac {x^{1-m}\,\sqrt {a+b\,x}}{\left (m-1\right )\,\sqrt {-a-b\,x}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x)^(1/2)/(x^m*(- a - b*x)^(1/2)),x)

[Out]

-(x^(1 - m)*(a + b*x)^(1/2))/((m - 1)*(- a - b*x)^(1/2))

________________________________________________________________________________________

sympy [C]  time = 2.83, size = 146, normalized size = 4.06 \begin {gather*} \begin {cases} \frac {i a a^{- m} b^{m} \left (-1 + \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m}}{b \left (1 - m\right )} - \frac {i a^{- m} b^{m} \left (-1 + \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m} \left (\frac {a}{b} + x\right )}{1 - m} & \text {for}\: \left |{\frac {b \left (\frac {a}{b} + x\right )}{a}}\right | > 1 \\- \frac {a a^{- m} b^{m} \left (1 - \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m}}{b \left (- i m e^{i \pi m} + i e^{i \pi m}\right )} + \frac {a^{- m} b^{m} \left (1 - \frac {b \left (\frac {a}{b} + x\right )}{a}\right )^{- m} \left (\frac {a}{b} + x\right )}{- i m e^{i \pi m} + i e^{i \pi m}} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**(1/2)/(x**m)/(-b*x-a)**(1/2),x)

[Out]

Piecewise((I*a*a**(-m)*b**m*(-1 + b*(a/b + x)/a)**(-m)/(b*(1 - m)) - I*a**(-m)*b**m*(-1 + b*(a/b + x)/a)**(-m)
*(a/b + x)/(1 - m), Abs(b*(a/b + x)/a) > 1), (-a*a**(-m)*b**m*(1 - b*(a/b + x)/a)**(-m)/(b*(-I*m*exp(I*pi*m) +
 I*exp(I*pi*m))) + a**(-m)*b**m*(1 - b*(a/b + x)/a)**(-m)*(a/b + x)/(-I*m*exp(I*pi*m) + I*exp(I*pi*m)), True))

________________________________________________________________________________________